package com.pearreview.ui.slidebox;

import java.awt.Cursor;
import java.awt.Dimension;

import javax.swing.JButton;

public class SlideOpenButton extends JButton {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8341319088467955001L;
	private boolean opened = false;

	public SlideOpenButton() {
		super();
		Dimension size = new Dimension(19, 16);
		setPreferredSize(size);
		setMinimumSize(size);
		
		setOpaque(false);
		setUI(new SlideOpenButtonUI());
		setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
	}
	
	public void setOpenState(boolean opened) {
		this.opened = opened;
	}
	
	public boolean getOpenState() {
		return opened;
	}
}